﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ArticleSelector.ascx.cs" Inherits="Hxsoft.AppV1.Admin.Controls.ArticleSelector" %>

<%@ Register Src="~/Controls/ListBox_HeadBox.ascx" TagName="ListBox_HeadBox" TagPrefix="uc" %>
<%@ Register Src="~/Controls/ListBox_FootBox.ascx" TagName="ListBox_FootBox" TagPrefix="uc" %>

<script type="text/javascript" src="<%# ResolveUrl("~/J/List.js") %>"></script>
<uc:ListBox_HeadBox ID="ListBox_HeadBox1" runat="server" />
<div class="ListBoxItem">
	<table id="ToolBarBox" cellspacing="0" width="100%">
		<tr>
			<td class="LevelCompart" align="right">
				<input type="button" class="Button" value="全选" onclick="SelectAllInner(&quot;List&quot;, &quot;&quot;);" />
				<input type="button" class="Button" value="反选" onclick="SelectReverseInner(&quot;List&quot;, &quot;&quot;);" />
				|
				<asp:Button ID="BtSelect" Text="选择" runat="server" OnClick="BtSelect_Click" />
			</td>
		</tr>
		<tr>
			<td id="Foot">
			    ID:<asp:TextBox ID="TbID" runat="server"></asp:TextBox>
				关键字:<asp:TextBox ID="TbKeyword" runat="server"></asp:TextBox>
				<asp:DropDownList ID="DdlEffectiveState" runat="server">
					<asp:ListItem Value="">-发布-</asp:ListItem>
					<asp:ListItem Value="True">有效</asp:ListItem>
					<asp:ListItem Value="False">失效</asp:ListItem>
				</asp:DropDownList>
				<asp:Button ID="BtSearch" runat="server" Text="搜索" OnClick="BtSearch_Click" />
				|
				<asp:Button ID="BtReload" runat="server" Text="刷新" OnClick="BtReload_Click" /></td>
		</tr>
	</table>
</div>
<div class="ListBoxItem">
	<asp:UpdatePanel ID="UpdatePanel1" runat="server">
		<ContentTemplate>
	<table id="ListBox" cellspacing="0" width="100%">
		<tbody>
			<tr>
				<td class="LevelCompart">
					<asp:Repeater ID="List" runat="server" OnItemCreated="DataList_ItemCreated" OnItemDataBound="DataList_ItemDataBound">
						<HeaderTemplate>
							<table id="List" cellspacing="1" cellpadding="2" width="100%">
								<tr id="Title">
									<th width="40">
										[ID]</th>
									<th>
										标题</th>
									<th width="120">
										添加时间</th>
									<th width="40">
										选择</th>
								</tr>
						</HeaderTemplate>
						<ItemTemplate>
							<tr class="mouseout" align="center" onmouseover="listItem_mouseOver(this);" onmouseout="listItem_mouseOut(this);">
								<td>
									<%# Eval("ArticleId") %>
								</td>
								<td align="left">
									<%# Eval("Title") %>
								</td>
								<td>
									<%# Eval("ReleaseDate")%>
								</td>
								<td>
									<asp:Label ID="LbSelectBox" runat="server"></asp:Label>
									<asp:HiddenField ID="Identifier_ArticleID" Value='<%# Eval("ArticleId") %>' runat="server" />
								</td>
							</tr>
						</ItemTemplate>
						<FooterTemplate>
							</table>
						</FooterTemplate>
					</asp:Repeater>
				</td>
			</tr>
			<tr>
				<td id="Td1" align="right">
					<hxctr:aspnetpager id="pager" runat="server" alwaysshow="True" OnPageChanging="Pager_PageChanging"
						custominfosectionwidth="" custominfotext="" pagesize="20" showcustominfosection="Left">
								</hxctr:aspnetpager>
				</td>
			</tr>
		</tbody>
	</table>
		</ContentTemplate>
		<Triggers>
			<asp:AsyncPostBackTrigger ControlID="BtReload" EventName="Click" />
			<asp:AsyncPostBackTrigger ControlID="BtSearch" EventName="Click" />
		</Triggers>
	</asp:UpdatePanel>
</div>
<uc:ListBox_FootBox ID="ListBox_FootBox1" runat="server" />